var webpack = require("webpack")
module.exports = {
    publicPath: "./",
    lintOnSave: false,
    devServer: {
        proxy: {
            '/api': {
                target: 'http://localhost:6721',//配置接口地址
                ws: true,
                // secure:true,
                changeOrigin: true,
                pathRewrite: {
                    '^/api': ''  //请求的时候使用api去拼接剩下的具体请求的url即可
                }
            },
            '/uploads':{
              target:'http://localhost:6721',
              changeOrigin:true,
              ws:false,
              secure:true,
            }
        }
    }
  }